package com.sharedlease.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author Laymedown
 */
@Data
public class Message implements Serializable {

    public static final long serialVersionUID = -2591979126891930370L;

    public String userId;

    public String username;

    public Integer rentTimeEnd;

    public String message;

    public String time;

    public Indent indent;

    public Message(String userId, String username, Integer rentTimeEnd, String message, String time) {
        this.userId = userId;
        this.username = username;
        this.rentTimeEnd = rentTimeEnd;
        this.message = message;
        this.time = time;
    }

    public Message(String userId, String message){
        this.message = message;
        this.userId = userId;
        this.rentTimeEnd = 2;
    }

    public Message(String userId, Indent indent){
        this.userId = userId;
        this.indent = indent;
    }

}
